package priv.bestbeat.reportcenter.core.mq;

import priv.bestbeat.reportcenter.core.exception.MethodNotAllowedError;
import priv.bestbeat.reportcenter.core.exception.PropertiesSetError;
import priv.bestbeat.reportcenter.core.monitor.MonitorProxy;

/**
 * @author 张渠钦
 * @date 2022/5/6 13:56
 */
public abstract class NoMonitorMessageProxy<T extends Message> extends MessageProxy<T>{

    @Override
    public void setMonitorProxy(MonitorProxy monitorProxy) {
        throw new PropertiesSetError("This MessageProxy Not Supported Monitor");
    }


    @Override
    public T sendWithMonitor(T message) throws Exception {
        throw new MethodNotAllowedError("This method Not Supported");
    }
}
